package com.lizelinteam.utils

object PathConfig {
  val output42Path: String = if(isLocal) {
    "C:/Users/32794/IdeaProjects/biyeshixi721/output3/output42"
  } else {
    "file:///home/spark-stand/output/output42"
  }

  val output41Path: String = if(isLocal) {
    "C:/Users/32794/IdeaProjects/biyeshixi721/output3/output41"
  } else {
    "file:///home/spark-stand/output/output41"
  }

  val isLocal: Boolean = sys.env.getOrElse("RUN_LOCAL", "false").toBoolean

  // 输入路径配置
  val inputPath: String = if(isLocal) {
    "C:/Users/32794/IdeaProjects/biyeshixi721/data/part_*.csv"
  } else {
    "file:///home/spark-stand/input/part_*.csv" // 或HDFS路径
  }

  // 输出路径配置
  val output31Path: String = if(isLocal) {
    "C:/Users/32794/IdeaProjects/biyeshixi721/output3/output31"
  } else {
    "file:///home/spark-stand/output/output31"
  }

  val output32Path: String = if(isLocal) {
    "C:/Users/32794/IdeaProjects/biyeshixi721/output3/output32"
  } else {
    "file:///home/spark-stand/output/output32"
  }
}